package com.shuda.common.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 分发方案DTO
 */
@Data
@Schema(description = "分发方案DTO")
public class DistributionSchemeDTO {

    @Schema(description = "方案ID")
    private Long id;

    @Schema(description = "方案名称")
    private String schemeName;

    @Schema(description = "方案编码")
    private String schemeCode;

    @Schema(description = "上游渠道ID")
    private Long upstreamChannelId;

    @Schema(description = "下游渠道ID")
    private Long downstreamChannelId;

    @Schema(description = "方案状态(0-禁用,1-启用)")
    private Integer schemeStatus;

    @Schema(description = "优先级")
    private Integer priority;

    @Schema(description = "描述信息")
    private String description;

    @Schema(description = "分发规则列表")
    private List<DistributionRuleDTO> rules;

    @Schema(description = "创建人")
    private Long creator;

    @Schema(description = "创建时间")
    private LocalDateTime createdTime;

    @Schema(description = "更新人")
    private Long updater;

    @Schema(description = "更新时间")
    private LocalDateTime updatedTime;
}